package com.deer.wms.base.system.dao.take;

import com.deer.wms.base.system.model.take.AreaTaskStockDaily;
import com.deer.wms.base.system.model.take.TakeStockDaily;
import com.deer.wms.common.core.commonMapper.Mapper;

import java.util.List;

public interface TakeStockDailyMapper extends Mapper<TakeStockDaily> {
    /**
     * 通过ID查询
     * @param id
     * @return
     */
    TakeStockDaily findTakeStockDailyById(Integer id);

    /**
     * 条件查询
     * @param takeStockDaily
     * @return
     */
    List<TakeStockDaily> TakeStockDailyList(TakeStockDaily takeStockDaily);

    /**
     * 批量删除
     * @param id
     * @return
     */
    int delectTakeStockDailyById(String[] id);


    int saveTakeStockDaily(TakeStockDaily takeStockDaily);

    /**
     * 查询物料一起对应的立体库的库存、历史库存、入库数、出库数量、应回流数量
     * @return
     */
    List<TakeStockDaily> getAllQuantity(TakeStockDaily takeStockDaily);

    /**
     * 查询暂存区的库存数量、历史库存数、入库数、出库数、回流入库数
     * @param takeStockDaily
     * @return
     */
    List<AreaTaskStockDaily> getAreaBoxItemQuantity(TakeStockDaily takeStockDaily);
}
